<?php

require_once ('library/Zend/Acl/Resource/Interface.php');

class Rnaasv_MenuResource implements Zend_Acl_Resource_Interface {
	
	public $resourceId;

	public $privilegeId;
	
	public $link;
	
	public $value;
	
	public $title;
	
	public $showInMenu;

	public $rolesAllowed = array();

	public $rolesDenyed = array();
	
	public $sub = array();
	
	/**
	 * @return string
	 */
	public function getResourceId() {
		return $this->resourceId;
	}
	/**
	 * @return string
	 */
	public function getLink() {
		return $this->link;
	}
	
	/**
	 * @param string $link
	 */
	public function setLink($link) {
		$this->link = $link;
	}
	
	/**
	 * @return string
	 */
	public function getPrivilegeId() {
		return $this->privilegeId;
	}
	
	/**
	 * @param string $privilegeId
	 */
	public function setPrivilegeId($privilegeId) {
		$this->privilegeId = $privilegeId;
	}
	
	/**
	 * @param string $resourceId
	 */
	public function setResourceId($resourceId) {
		$this->resourceId = $resourceId;
	}
	
	/**
	 * @return array
	 */
	public function getRolesAllowed() {
		return $this->rolesAllowed;
	}
	
	/**
	 * @param string $roles
	 */
	public function setRolesAllowed($roles) {
		$this->rolesAllowed = $roles;
	}

	/**
	 * @param string $rol
	 * @return MenuResource
	 */
	public function addRolesAllowed($rol) {
		$this->rolesAllowed[] = $rol;
		return $this;
	}

	/**
	 * @return array
	 */
	public function getRolesDenyed() {
		return $this->rolesDenyed;
	}
	
	/**
	 * @param string $roles
	 */
	public function setRolesDenyed($roles) {
		$this->rolesDenyed = $roles;
	}

	/**
	 * @param string $rol
	 * @return MenuResource
	 */
	public function addRolesDenyed($rol) {
		$this->rolesDenyed[] = $rol;
		return $this;
	}
	
	/**
	 * @return array
	 */
	public function getSub() {
		return $this->sub;
	}
	
	/**
	 * @param unknown_type $sub
	 */
	public function setSub(array $sub) {
		$this->sub = $sub;
	}
	
	/**
	 * @return string
	 */
	public function getTitle() {
		return $this->title;
	}
	
	/**
	 * @param string $title
	 */
	public function setTitle($title) {
		$this->title = $title;
	}
	
	/**
	 * @return string
	 */
	public function getValue() {
		return $this->value;
	}
	
	/**
	 * @param string $value
	 */
	public function setValue($value) {
		$this->value = $value;
	}

}

?>
